<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
<f:view>
<!-- <f:loadBundle basename="co.edu.ucatolica.sislab.web.message.MessageResources" var="msg"/> -->
<ui:composition template="/WEB-INF/templates/BasicTemplate.xhtml">	
    <ui:define name="content">
    	<center>
		<div class="navigation" id="navigation">
			<ul class="navigation">
				<li><a href="welcome.xhtml">Menu</a></li>
		    </ul>
		</div>
        <h:form>
        <fieldset style="margin: 100px">
        <legend><h3 style=" font-weight: bold; font-size: 18pt; font-style:italic; color: navy;font-family: fantasy; ">Crear Usuario</h3></legend>
        <p>&nbsp;</p>
            <h:panelGrid columns="4">            
                <h:outputText value="Nombre" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:inputText size="16" value="#{userBean.nombre}" style="border-width: 2px; border-style: solid; border-color:#999; font-size:10pt; color:black; font-weight: bold; letter-spacing :3px;"></h:inputText>
                <h:outputText value="Codigo" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:inputText size="16" value="#{userBean.codigo}" style="border-width: 2px; border-style: solid; border-color:#999; font-size:10pt; color:black; font-weight: bold; letter-spacing :3px;"></h:inputText>
                <h:outputText value="Telefono" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:inputText size="16" value="#{userBean.telefono}" style="border-width: 2px; border-style: solid; border-color:#999; font-size:10pt; color:black; font-weight: bold; letter-spacing :3px;"></h:inputText>
                <h:outputText value="Usuario" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:inputText size="16" value="#{userBean.usuario}" style="border-width: 2px; border-style: solid; border-color:#999; font-size:10pt; color:black; font-weight: bold; letter-spacing :3px;"></h:inputText>
                <h:outputText value="Tipo Idetificacion" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:selectOneMenu value="#{userBean.tipoIdentificacionSeleccionado}">
			    	<f:selectItems value="#{userBean.tiposIdentificacion}" />
			    </h:selectOneMenu>
                <h:outputText value="Numero Identificacion" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:inputText size="16" value="#{userBean.identificacion}" style="border-width: 2px; border-style: solid; border-color:#999; font-size:10pt; color:black; font-weight: bold; letter-spacing :3px;"></h:inputText>
                <h:outputText value="Estado" style="font-weight: bold; font-size: 12pt;  color: navy; font-family: fantasy;"></h:outputText>
                <h:selectOneMenu value="#{userBean.estadoSeleccionado}">
			    	<f:selectItems value="#{userBean.estados}" />
			    </h:selectOneMenu>
            </h:panelGrid>
			<br></br>
            <h:commandButton image="image/boton-azul.png" value="Crear Usuario" actionListener="#{userBean.actionCrearUsuario}" />
            <br/>            
       </fieldset>
        </h:form>
        </center>
    </ui:define>
</ui:composition>
</f:view>
</html>

